if (typeof String.prototype.startsWith != 'function') {
	String.prototype.startsWith = function(str) {
		return (this.match("^"+str)==str) ;
	} ;
}

if (typeof String.prototype.endsWith != 'function') {
	String.prototype.endsWith = function(str) {
		return (this.match(str+"$")==str) ;
	} ;
}

function psiPopup(href) {
	var height = 0.9*screen.height;
	var top = 0.05*screen.height;
	var left = (screen.width-1024)/2;
	window.open(href, 'psiPopup', 'toolbar=no, location=no, directories=no, menubar=no, status=no, scrollbars=yes, menubar=no, copyhistory=no, width=1024, height='+height+', top='+top+', left='+left);
}

$(document).ready(function() {
	$('.noaction').click(function(){
		return false;
	});
});